<<<<<<< HEAD
import {createBrowserRouter,Navigate} from 'react-router-dom'
import List from '../component/List'
import Home from '../component/Home'
import Reservation from '../component/Reservation'
import Reservation_xx from '../component/Reservation_xx'
import Department from '../component/Department'
import Xiangqing from '../component/Xiangqing'
import Home1 from '../pages/Home'
import Medical from '../pages/Medical'
import Show from '../pages/Show'
import Illness from '../pages/Illness'
const router=createBrowserRouter([
    {path:'/list',element:<List></List>},
    {path:'/homes',element:<Home></Home>},
    {path:'/reservation',element:<Reservation></Reservation>},
    {path:'/reservation_xx',element:<Reservation_xx></Reservation_xx>},
    {path:'/department',element:<Department></Department>},
    {path:'/xiangqing',element:<Xiangqing></Xiangqing>},

    {
        path:'/',
        element:<Navigate to='/home'/>,
    },
    {
        path:'/home',
        element:<Home1/>,
        children:[
            {
                path:'',
                element:<Navigate to='medical'/>,
            },
            {
                path:'medical',
                element:<Medical/>,
            }
        ]
    },
    {
        path:'/Show/:id',
        element:<Show></Show>
    },
    {
        path:'/illness',
        element:<Illness/>
    }

=======
import React from 'react'
import { createBrowserRouter, Navigate ,useNavigate } from 'react-router-dom'
import App from '../App'
import Steer from '../components/Steer' 
import Shou from '../components/Shou' 
import Address from '../components/Address' 

const router = createBrowserRouter([
    {
        path: "/", element: <App></App>,
        children: [
            { path: "/shou", element: <Shou></Shou>},
            { path: "/steer", element: <Steer></Steer> },
            { path: "/address", element: <Address></Address> },
            { path: "/", element: <Navigate to='/steer'></Navigate> },
        ]
    },
    
>>>>>>> origin/szy
])
export default router